<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>result</title>
    <script src="./jquery.js"></script>
    <script>

        $(function(){

            $.ajax({
                type: "GET",
                url: "http://localhost:8080/order/1",
                contentType: "application/json;charset=utf-8",
                success: function(msg){
                    let order = msg[msg.length -1]
                    $("#result").html(order.orderId + ":"+order.orderStatus )
                }
            });
        });

    </script>
</head>
<body>
<div>
    <div id="result">

    </div>
</div>
</body>
</html>